import request from '@/utils/request'

// 查询基金产品列表
export function listInvestproducts(query) {
  return request({
    url: '/business/investproducts/list',
    method: 'get',
    params: query
  })
}

// 查询基金产品详细
export function getInvestproducts(id) {
  return request({
    url: '/business/investproducts/' + id,
    method: 'get'
  })
}

// 新增基金产品
export function addInvestproducts(data) {
  return request({
    url: '/business/investproducts',
    method: 'post',
    data: data
  })
}

// 修改基金产品
export function updateInvestproducts(data) {
  return request({
    url: '/business/investproducts',
    method: 'put',
    data: data
  })
}

// 删除基金产品
export function delInvestproducts(id) {
  return request({
    url: '/business/investproducts/' + id,
    method: 'delete'
  })
}
export function listClassificationName() {
  return request({
    url: '/business/investproducts/searchClassificationName',
    method: 'get',
  })
}